package com.neusoft.pub.cloud.provider.entity;

/**
 * describe : 计费模式
 *
 * @author hao.dd
 * @date 2023/7/28
 */

public class BillingMode {
    private String billingModelKey;
    private String billingModelName;

    public String getBillingModelKey() {
        return billingModelKey;
    }

    public void setBillingModelKey(String billingModelKey) {
        this.billingModelKey = billingModelKey;
    }

    public String getBillingModelName() {
        return billingModelName;
    }

    public void setBillingModelName(String billingModelName) {
        this.billingModelName = billingModelName;
    }

    private BillingMode(String billingModelKey, String billingModelName) {
        this.billingModelKey = billingModelKey;
        this.billingModelName = billingModelName;
    }

    public static class Builder {
        private String billingModelKey;
        private String billingModelName;

        public static Builder builder() {
            return new Builder();
        }

        public Builder setBillingModelKey(String billingModelKey) {
            this.billingModelKey = billingModelKey;
            return this;
        }

        public Builder setBillingModelName(String billingModelName) {
            this.billingModelName = billingModelName;
            return this;
        }

        public BillingMode build() {
            return new BillingMode(billingModelKey, billingModelName);
        }
    }
}